home *** CD-ROM | disk | FTP | other *** search
- Example #3
-
- timedisp{on}
- color{15,0,7}
- title{ DOS COMMAND INTERFACE }
- color{14,1,7}
-
- menudef{0} Main Menu
- color{14,1,6}
- title{ Main Menu }
- color{14,2,7}
- select{File Commands}
- menu{1}
- select{Directory Commands}
- menu{2}
- select{Disk Commands}
- menu{3}
- select{System Commands}
- menu{4}
- select{Quit Program}
- screen{on}
- quit{Bye}
-
- menudef{1} File Commands
- title{ File Commands }
- select{Return to Main Menu}
- menu{0}
- select{<TYPE> Display File}
- input{0,1w,Enter pathname: }
- screen{on}
- prompt{}
- command{type %0 | more}
- wait{0,Press any key to continue.}
- screen{off}
- select{<COPY> Copy File}
- input{0,1w,Enter source pathname: }
- input{1,1w,Enter destination pathname: }
- prompt{Coping..}
- command{copy %0 %1}
- prompt{}
- select{<COMP> Compare File}
- input{0,1w,Enter source pathname: }
- input{1,1w,Enter destination pathname: }
- screen{on}
- prompt{}
- command{comp %0 %1}
- wait{0,Press any key to continue.}
- screen{off}
-
- menudef{2} Directory Commands
- title{ Directory Commands }
- select{Return to Main Menu}
- menu{0}
- select{<DIR> Display Directory}
- input{0,Enter directory name: }
- screen{on}
- prompt{}
- command{dir %0 | more}
- wait{0,Press any key to continue.}
- screen{off}
- select{<TREE> List Directories}
- input{0,1c,Enter drive designation: }
- screen{on}
- prompt{}
- command{tree %0 | more}
- wait{0,Press any key to continue.}
- screen{off}
- select{<CHDIR> Change Directory}
- input{0,Enter directory name: }
- command{cd %0}
- select{<MKDIR> Make Directory}
- input{0,Enter directory name: }
- getkey{Press <ESC> to abort, <RETURN> to continue.}
- option{27}
- prompt{}
- option{13}
- screen{on}
- prompt{}
- command{echo Making %0...}
- command{md %0}
- wait{0,Press any key to continue.}
- screen{off}
- select{<RMDIR> Remove Directory}
- input{0,Enter directory name: }
- getkey{Press <ESC> to abort, <RETURN> to continue.}
- option{27}
- prompt{}
- option{13}
- screen{on}
- prompt{}
- command{echo Removing %0...}
- command{rd %0}
- wait{0,Press any key to continue.}
- screen{off}
-
- menudef{3} Disk Commands
- title{ Disk Commands }
- select{Return to Main Menu}
- menu{0}
- select{<CHKDSK> Check Disk}
- input{0,1c,Enter chkdsk parameter: }
- screen{on}
- prompt{}
- command{chkdsk %0}
- wait{0,Press any key to continue.}
- screen{off}
- select{<FORMAT> Format Disk}
- getkey{Press <ESC> to abort, A for drive A:, or B for drive B:}
- option{27} esc
- prompt{}
- option{65,97} A
- screen{on}
- prompt{}
- command{format a:}
- screen{off}
- option{66,98} B
- screen{on}
- prompt{}
- command{format b:}
- screen{off}
- select{<DISKCOPY> Copy Disk}
- input{0,1c,Enter source drive letter: }
- input{1,1c,Enter destination drive letter: }
- screen{on}
- prompt{}
- command{diskcopy %0: %1:}
- screen{off}
- select{<SYS> Put Dos on Disk}
- getkey{Press <ESC> to abort, A for drive A:, or B for drive B:}
- option{27} esc
- prompt{}
- option{65,97} A
- wait{13,Place disk in drive A: and press <RETURN>}
- screen{on}
- prompt{}
- command{sys a:}
- screen{off}
- option{66,98} B
- wait{13,Place disk in drive B: and press <RETURN>}
- screen{on}
- prompt{}
- command{sys b:}
- screen{off}
- select{Copy Command.com to Disk}
- getkey{Press <ESC> to abort, A for drive A:, or B for drive B:}
- option{27} esc
- prompt{}
- option{65,97} A
- wait{13,Place disk in drive A: and press <RETURN>}
- prompt{Coping Command.com...}
- command{copy \command.com a:}
- prompt{}
- option{66,98} B
- wait{13,Place disk in drive B: and press <RETURN>}
- prompt{Coping Command.com...}
- command{copy \command.com b:}
- prompt{}
-
- menudef{4} System Commands
- title{ System Commands }
- select{Return to Main Menu}
- menu{0}
- select{<DATE> Set system date}
- screen{on}
- prompt{}
- command{date}
- screen{off}
- select{<TIME> Set system time}
- screen{on}
- prompt{}
- command{time}
- screen{off}
- select{<SET> Set environment}
- input{0,Enter set parameters: }
- screen{on}
- prompt{}
- command{set %0}
- wait{0,Press any key to continue.}
- screen{off}
-